OpenWGA 7.6 - WebTML reference

WebTML tags » [All tags]

<tml:[All tags] wrap ="html-tag">

Purpose:

Wraps the result of the TML tag with the given HTML-Tag if the TML-Tag result ist not empty.

Description:

Used to wrap non-empty TML-Tag-Results.

HTML attributes for the generated wrapper tag can be specified using attributes wrap_... or wrap-.... wrap_ (underscore) accepts a static string as value where wrap-... (minus) interprets the value as Item-Expression.

Value(s):

HTML Tag

Examples:

<tml:item name="something" wrap="h2" wrap_class="headline"/>

Wraps the output of the item tag with <h2 class="headline">...</h2> if the item value is not empty.

<tml:input name="query" wrap="form" wrap_id="search-form"/>

Generates a simple search form <form id="search-form"><input name="query"></form>.

<tml:children wrap="ul">
    <li><tml:link/></li>
</tml:children>

Wraps a child navigator with <ul>...</ul> - but only if the child navigator has some results therefore avoiding an empty <ul></ul> fragment.